<div class="nav-tabs-custom">
	<ul class="nav nav-tabs">
		<li class="active"><a href="#">网站设置</a></li>
	</ul>
	
	<form class="form-horizontal js-ajax-form" method="post" action="{:Url('setting_post')}">
		<div class="box-body mt10">
			<div class="form-group">
				<label class="col-sm-2 control-label">网站标题 <span>*</span></label>
				<div class="col-sm-8">
					<input type="text" name="title" class="form-control" placeholder="网站标题" value="{$title}" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">网站关键词</label>
				<div class="col-sm-8">
					<input type="text" name="keywords" class="form-control" placeholder="网站关键词" value="{$keywords}" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">网站描述</label>
				<div class="col-sm-8">
					<textarea name="description" rows="3" class="form-control" placeholder="网站描述">{$description}</textarea>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">网站logo</label>
				<div class="col-sm-8">
                    <a href="javascript:;" class="upload_thumb" onclick="flashupload('图片上传','logo', thumb_images, '1,baseImage'); return false;">
                        {if (!empty($logo))}
                        <img src="{$logo}" id="logo_preview" style="max-width:100px; max-height:100px;" />
                        <input type="hidden" name="logo" id="logo" value="{$logo}" />
                        {else /}
                        <img src="__IMG__/icon/default-thumbnail.png" id="logo_preview" style="max-width:100px; max-height:100px;" />
                        <input type="hidden" name="logo" id="logo" />
                        {/if}
                    </a>
                    <div class="mt5">
                        <button class="btn btn-xs btn-danger" onclick="$('#logo_preview').attr('src','__IMG__/icon/default-thumbnail.png');$('#logo').val('');return false;">取消图片</button>
                    </div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">网站logo 二级页面</label>
				<div class="col-sm-8">
                    <a href="javascript:;" class="upload_thumb" onclick="flashupload('图片上传','min_logo', thumb_images, '1,baseImage'); return false;">
                        {if (!empty($min_logo))}
                        <img src="{$min_logo}" id="min_logo_preview" style="max-width:100px; max-height:100px;" />
                        <input type="hidden" name="min_logo" id="min_logo" value="{$min_logo}" />
                        {else /}
                        <img src="__IMG__/icon/default-thumbnail.png" id="min_logo_preview" style="max-width:100px; max-height:100px;" />
                        <input type="hidden" name="min_logo" id="min_logo" />
                        {/if}
                    </a>
                    <div class="mt5">
                        <button class="btn btn-xs btn-danger" onclick="$('#min_logo_preview').attr('src','__IMG__/icon/default-thumbnail.png');$('#min_logo').val('');return false;">取消图片</button>
                    </div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">网站底部logo</label>
				<div class="col-sm-8">
                    <a href="javascript:;" class="upload_thumb" onclick="flashupload('图片上传','bot_logo', thumb_images, '1,baseImage'); return false;">
                        {if (!empty($bot_logo))}
                        <img src="{$bot_logo}" id="bot_logo_preview" style="max-width:100px; max-height:100px;" />
                        <input type="hidden" name="bot_logo" id="bot_logo" value="{$bot_logo}" />
                        {else /}
                        <img src="__IMG__/icon/default-thumbnail.png" id="bot_logo_preview" style="max-width:100px; max-height:100px;" />
                        <input type="hidden" name="bot_logo" id="bot_logo" />
                        {/if}
                    </a>
                    <div class="mt5">
                        <button class="btn btn-xs btn-danger" onclick="$('#bot_logo_preview').attr('src','__IMG__/icon/default-thumbnail.png');$('#bot_logo').val('');return false;">取消图片</button>
                    </div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">备案号</label>
				<div class="col-sm-8">
					<input type="text" name="icp" class="form-control" placeholder="备案号" value="{$icp}" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">版权信息</label>
				<div class="col-sm-8">
					<input type="text" name="copyright" class="form-control" placeholder="版权信息" value="{$copyright}" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">统计代码</label>
				<div class="col-sm-8">
					<textarea name="statistics" rows="6" class="form-control" placeholder="统计代码">{$statistics}</textarea>
				</div>
			</div>
		</div>
		<div class="box-footer">
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
					<a class="btn btn-default">返回</a>
				</div>
			</div>
		</div>
    </form>

</div>
